package com.xxl.sso.server;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.web.client.RestTemplate;

/**
 * @author xuxueli 2018-03-22 23:41:47
 */
@SpringBootApplication(scanBasePackages = {"com.xxl.sso.*", "com.alibaba.algo.cooperation.usercomponent"})
@EnableDiscoveryClient
@EnableFeignClients(basePackages = {"com.xxl.sso.*", "com.alibaba.algo.cooperation.usercomponent"})
@EnableScheduling
@MapperScan("com.xxl.sso.server.dao")
@EnableAsync
public class SsoServerApplication {

	public static void main(String[] args) {
		SpringApplication.run(SsoServerApplication.class, args);
	}

}